package com.myname.myproject;
import com.example.app.*;
public class First {
    public static void main(String[] args){
        Main.main(new String[]{});
        second.main(new String[]{});
        System.out.println(1 + 1);
        boolean flag = (5>0)? true : false;
        System.out.println("flag" + flag);
        switch (1+1){
            case 2:{
                System.out.println("这是2");
                break;
            }
            default:{
                System.out.println("这是默认");
                break;
            }
        }
        Number x = 1;
        System.out.println(x.intValue()+"这是x的double类型"+x.doubleValue());
        int a = 0, b = 0;
        try{
            if(b == 0){throw new IllegalArgumentException("除数为0！");}
            int result = a / b;

        }
        catch (IllegalArgumentException e){
            System.out.println("异常是：" + e.getMessage());
        }

    }
}
